import { Controller, Get } from '@nestjs/common';
import { ImagesService } from './images.service';
import { ApiOperation, ApiTags } from '@nestjs/swagger';

@ApiTags('图片')
@Controller('images')
export class ImagesController {
  constructor(private readonly imagesService: ImagesService) {}

  @ApiOperation({ summary: '随机生成一张图片' })
  @Get('randomGenerate')
  randomGenerate() {
    return this.imagesService.randomGenerate();
  }
}
